package com.youhome.clients.dto;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * Created by chen365 on 2019/02/27.
 */
@Data
@ApiModel
public class DTOUndone {
    @ApiModelProperty(value = "关键字", required = true)
    @NotBlank(message = "关键字不能为空")
    private String keyword;

    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String username;

    @ApiModelProperty(value = "手机", required = true)
    @Length(min = 11, max = 11, message = "手机号码为11位数字")
    private String phone;

    @ApiModelProperty(value = "邮箱", required = true)
    @Email(message = "邮箱不正确")
    @NotBlank(message = "邮箱不能为空")
    private String email;

}
